<?php
/**
 * Created by PhpStorm.
 * Admininfo: Administrator
 * Date: 2018/7/31 0031
 * Time: 上午 10:13
 */
namespace app\admin\controller;
use app\common\controller\Curt;
use app\admin\model\Menu;

class Admingroup extends Curt{
    public function __construct($upload = false, array $uploadsConfig = ['input_name' => 'coverFile', 'data_field' => 'cover'])
    {
        parent::__construct($upload, $uploadsConfig);
    }
    public function showEdit($id)
    {
        $menumodel=new Menu();
        $menulist=$menumodel::getchildlist();
        $list = collection($menulist)->toArray();
        $this->assign('menulist',$list);
        return parent::showEdit($id); // TODO: Change the autogenerated stub
    }
    public function showAdd()
    {
        $menumodel=new Menu();
        $menulist=$menumodel::getchildlist();
        $list = collection($menulist)->toArray();
        $this->assign('menulist',$list);
        return parent::showAdd(); // TODO: Change the autogenerated stub
    }
}